#!/bin/bash
set -e;echo `service mysql status`;echo 'import data';mysql -uroot -pHuawei@123 < /myinfo/data.sql;echo 'import job';mysql -uroot -pHuawei@123 < /myinfo/job.sql